package com.lei.design.factory.pizza.store;

import com.lei.design.factory.pizza.pizza.*;

/**
 * @Author LeiXiaoLei
 * @Date 2022/5/17 17:13
 * @Version 1.0
 */
public class ChicagoPizzaStore extends PizzaStore {
    @Override
    protected Pizza createPizza(String type) {
        if (type.equals("cheese")) {
            return new ChicagoStyleCheesePizza();
        } else if (type.equals("veggie")) {
            return new ChicagoStyleVeggiePizza();
        } else return null;
    }
}
